import { ref } from 'vue'
import { setStorage, getStorage } from "../utils/storage.ts";
import request from '@/utils/request.ts'

export default () => {
    const withdrawal = ref({
        alipay_name: '',
        alipay_phone: '',
        all_amount: '',
        frozen_amount: '',
        promoter_balance: ''
    })

    const viewAccount = () => {
        request.post("App/api/viewAccount").then((res) => {
            withdrawal.value = res.data;
        })
    }

    return { withdrawal, viewAccount }
}